home *** CD-ROM | disk | FTP | other *** search
Null Bytes Alternating | 1997-01-09 | 2.9 KB | 40 lines |
- '++LotusScript Development Environment:2:5:(Options):0:66
-
- '++LotusScript Development Environment:2:5:(Forward):0:1
- Declare Sub Change(Source As Fieldbox)
-
- '++LotusScript Development Environment:2:5:(Declarations):0:2
-
- '++LotusScript Development Environment:2:2:BindEvents:1:129
- Private Sub BindEvents(Byval Objectname_ As String)
- Static Source As FIELDBOX
- Set Source = Bind(Objectname_)
- On Event Change From Source Call Change
- End Sub
-
- '++LotusScript Development Environment:2:2:Change:1:12
- Sub Change(Source As Fieldbox)
- ' Change event for fbxDateDisplay field box object on Schedule Display view
- ' If the user enters a new date in the date display box at the top of the view,
- ' this script identifies the new text as a date, clears the view of other reservation
- ' information, and fills the view with reservation information for the new date.
-
- ' Check to see if the new text is a date, then
- If Isdate(source.text) Then
-
- ' Run the clearDisplay sub to remove previous reservation info from
- ' the view
- Call clearDisplay()
-
- ' Search for reservation information for the new date and display it
- ' in the view
- Call readBlock (source.fbxDateDisplay.text)
-
- Else ' If the new text is not a date, then
-
- ' Prompt the user that the text is not in a form that can be understood
- Messagebox "Date entered is not valid. Enter a date in the format MM/DD/YY", MB_OK + MB_ICONEXCLAMATION, "Invalid date"
-
- End If ' Is the text a date
-
- End Sub ' Change event on fbxDateDisplay